package com.guofen.service.yf;

import com.guofen.pojo.RdDischarge;

import java.util.List;
import java.util.Map;

public interface RdDischargeService {
    boolean submitAllInfo(RdDischarge rdDischarge);
    RdDischarge getlast();
    boolean addFirst(String dischargeDate,String batch,String zubie,String boxNumber,String device1Name,String dischargeStarttime,
                     String dischargeEndtime,String sieveStarttime,String sieveEndtime,String dischargeBoxWeight,
                     String boxWeight,String dischargeWeight,String insectDungWeight_1,String sieveWeight,String surfaceFiberWeight,
                     String insectImpurityWeight,String remark,String recorder);
    List<RdDischarge> getList();
    boolean addSecond(String id,String seperateDate,String insectSeparateStarttime,String insectSeparateEndtime,String device2Name,String insectWeight,
                      String impurityWeight,String insectDungWeight,String remark,String separatePerson);

    public Map<String, Object> get(int pageSize, int currentPage);

    public Map<String, Object> getByTime(int pageSize, int currentPage, long startTime, long endTime);

    public int delete(int id);

    public int update(RdDischarge record);
}
